package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;

/**
 * @program: tensquare_parent
 * @description:
 * @author: tianshengfei
 * @create: 2019-12-05 21:40
 **/
public interface ArticleDao extends ElasticsearchCrudRepository<Article,String> {

    public Page<Article> findAllByTitleOrContentLike(String title,String content,Pageable pageable);
}
